luci-app-attendedsysupgrade: use the same logic as the main build when requesting...
authorLili González <[email protected]>
Sat, 25 Oct 2025 00:23:49 +0000 (18:23 -0600)
committerPaul Donald <[email protected]>
Sat, 25 Oct 2025 21:02:37 +0000 (23:02 +0200)
commit3111992beaaec830fe28d4ce05024df155515c26
tree1889bf0904ff20d8776fd3ef26da12322ee300c7
parent6ce6ec433321c8f1f1fdbd504b2d30182fc60b14
luci-app-attendedsysupgrade: use the same logic as the main build when requesting rebuilds

When initiating a build the requests were build differently
between main and rebuild servers leading to the latter using
only POST request instead of the POST->GET flow. This led to
incorrect tracking of builds in the target ASU server due to
each request being classified unique.

This is fixed by switching rebuild requests to the POST->GET
flow and storing each server's request hash in a map and using
it regardless if it is the main or a rebuild server handling
the request.

Fixes: openwrt/asu#1526
Signed-off-by: Lili González <[email protected]>
(cherry picked from commit 31fb9ce1967ee5650777588efaa167a6ac076417)
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js